package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.perfectschool.pojo.Job;
import com.etime.perfectschool.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

//  兼职表
@Repository
public interface JobMapper extends BaseMapper<Job> {

    //  修改兼职状态
    int changJobState(Map<String,Object> map);

    //  通过工作类型查看所有兼职
    List<Job> getAllJob(String jobType);

    //  查看所有兼职
    Page<Job> getJobByPage(IPage iPage);
}
